package com.gking.aiService.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 人工智能服务记录
 */
@Data
@TableName("ai_service_record")
public class AiServiceRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    /**
     * 访问的用户id
     */
    @TableField(value = "accessUserId")
    private String accessUserId;

    /**
     * 向AI提问的消息
     */
    @TableField(value = "userMessage")
    private String userMessage;

    /**
     * 对于此次提问的日志描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * AI服务响应状态
     */
    @TableField(value = "responseStatus")
    private Integer responseStatus;

    /**
     * AI服务响应内容
     */
    @TableField(value = "responseContent")
    private String responseContent;

    /**
     * 此次服务消耗时间
     */
    @TableField(value = "consumeTime")
    private long consumeTime;

    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //是否删除
    @TableField(value = "isDelete")
    private Integer isDelete;
}
